package com.grademaster.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 课程表
 * @TableName courses
 */
@TableName(value ="courses")
@Data
@ApiModel("课程表")
public class Courses implements Serializable {
    /**
     * 课程ID
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("课程ID")
    private Long courseId;

    /**
     * 授课教师ID
     */
    @ApiModelProperty("授课教师ID")
    private Long teacherId;

    /**
     * 学期ID
     */
    @ApiModelProperty("学期ID")
    private Long termId;

    /**
     * 班级ID
     */
    @ApiModelProperty("班级ID")
    private Long classId;

    /**
     * 课程名称
     */
    @ApiModelProperty("课程名称")
    private String courseName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
